package cn.com.lsjz.nursemanager.service.system;

import java.util.List;
import java.util.Map;

import cn.com.lsjz.nursemanager.model.system.SysRole;


public interface SysRoleService {

	/**
	 * 根据用户Id获取对应的角色字符串
	 * @param userId
	 * @return
	 */
	String getRolesByUserId(String userId);
	
	SysRole saveRole(SysRole role);
	
	SysRole editRole(SysRole role);
	
	void delRole(Integer id);
	
	SysRole getRole(Integer id);
	
	void activeRole(Integer id,Integer active);
	
	List<SysRole> loadRoleList(String roleName);
	
	Map<String, Object> getPermission(Integer roleId);
	
	void savePermission(Integer roleId,String modules);
	
}
